package models

import (
	"time"

	"github.com/astaxie/beego/orm"
)

type SystemConfigs struct {
	Id        int       `orm:"column(id);auto" description:"pk_id"`
	Group     string    `orm:"column(group);size(20)" description:"配置组标识"`
	Name      string    `orm:"column(name);size(50)" description:"配置名称"`
	Value     string    `orm:"column(value);null" description:"配置值"`
	CreatedAt time.Time `orm:"column(created_at);type(datetime);null" description:"创建时间"`
	UpdatedAt time.Time `orm:"column(updated_at);type(datetime);null" description:"更新时间"`
}

func (t *SystemConfigs) TableName() string {
	return "system_configs"
}

func init() {
	orm.RegisterModel(new(SystemConfigs))
}
